package com.woniu.mapper;

import com.woniu.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper extends JpaRepository<User,Integer> {
    List<User> findAllByHobbyId(int i);

    List<User> findAllByHobbyIdAndUsernameLike(int i, String s);

    List<User> findAllByHobbyIdOrderByIdDesc(int i);

    User findByUsernameLike(String username);
}